const accessToken = "assessToken";
const Role ="role"
const userName = "userName"
//const refreshToken = "refresh_token";
export function getAccessToken() {
  return localStorage.getItem(accessToken);
}
export function setAccessToken(token) {
  return localStorage.setItem(accessToken, token);
}
export function getRole() {
  return localStorage.getItem(Role);
}
export function setRole(role) {
  return localStorage.setItem(Role, role);
}

export function removeAccessToken() {
  return localStorage.removeItem(accessToken);
}

export function removeRole() {
  return localStorage.removeItem(Role);
}
export function getuserName() {
  return localStorage.getItem(userName);
}
export function setuserName(username) {
  return localStorage.setItem(userName, username);
}

export function removeuserName() {
  return localStorage.removeItem(userName);
}

export function getbookName() {
  return localStorage.getItem("BookName");
}
export function setbookName(bookName) {
  return localStorage.setItem("BookName", bookName);
}

export function getbookType() {
  return localStorage.getItem("BookType");
}
export function setbookType(bookType) {
  return localStorage.setItem("BookType", bookType);
}
